package com.xxljob.demo.dao;

import com.xxljob.demo.core.model.XxlJobInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author：YH
 * @Description：
 * @Date:Created in 2022/5/21 20:41
 */
@Mapper
public interface XxlJobInfoDao {

    public List<XxlJobInfo> scheduleJobQuery(@Param("maxNextTime") long maxNextTime, @Param("pagesize") int pagesize);

    /**
     * @Description:根据任务Id获取任务
     **/
    public XxlJobInfo loadById(@Param("id") int id);

    public int scheduleUpdate(XxlJobInfo xxlJobInfo);
}
